<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::buff类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d5/d36/classwheels_1_1buff.html">buff</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d1/d14/classwheels_1_1buff-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::buff类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::buff 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d3d/classwheels_1_1buff__inherit__graph.png" border="0" usemap="#awheels_1_1buff_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1buff_inherit__map" id="awheels_1_1buff_inherit__map">
<area shape="rect" title=" " alt="" coords="13,769,166,1153"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="5,395,173,720"/>
<area shape="poly" title=" " alt="" coords="92,735,92,770,87,770,87,735"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="5,5,173,331"/>
<area shape="poly" title=" " alt="" coords="92,346,92,395,87,395,87,346"/>
</map>
</div>
<div class="dynheader">
wheels::buff 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d43/classwheels_1_1buff__coll__graph.png" border="0" usemap="#awheels_1_1buff_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1buff_coll__map" id="awheels_1_1buff_coll__map">
<area shape="rect" title=" " alt="" coords="13,769,166,1153"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="5,395,173,720"/>
<area shape="poly" title=" " alt="" coords="92,735,92,770,87,770,87,735"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="5,5,173,331"/>
<area shape="poly" title=" " alt="" coords="92,346,92,395,87,395,87,346"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a6503c646eb1b9b523b4bab4fc3929805" id="r_a6503c646eb1b9b523b4bab4fc3929805"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">iterator</a> = char *</td></tr>
<tr class="separator:a6503c646eb1b9b523b4bab4fc3929805"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_types_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; buff &gt;</a></td></tr>
<tr class="memitem:a49cbde8528bcf4e2daa32e6b09e9039c inherit pub_types_classwheels_1_1dm_1_1singleton" id="r_a49cbde8528bcf4e2daa32e6b09e9039c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a></td></tr>
<tr class="separator:a49cbde8528bcf4e2daa32e6b09e9039c inherit pub_types_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aeea7382f5dbe94bd7bfae2a8f3b2908b" id="r_aeea7382f5dbe94bd7bfae2a8f3b2908b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeea7382f5dbe94bd7bfae2a8f3b2908b">buff</a> ()</td></tr>
<tr class="separator:aeea7382f5dbe94bd7bfae2a8f3b2908b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94aa05af107e6b5906f269e7ef53609e" id="r_a94aa05af107e6b5906f269e7ef53609e"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a94aa05af107e6b5906f269e7ef53609e">~buff</a> ()</td></tr>
<tr class="separator:a94aa05af107e6b5906f269e7ef53609e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac76d02cb8a8df2065a8d96840db8f576" id="r_ac76d02cb8a8df2065a8d96840db8f576"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac76d02cb8a8df2065a8d96840db8f576">toString</a> (std::string &amp;rst)</td></tr>
<tr class="memdesc:ac76d02cb8a8df2065a8d96840db8f576"><td class="mdescLeft">&#160;</td><td class="mdescRight">将结果转换成标准字符串。  <br /></td></tr>
<tr class="separator:ac76d02cb8a8df2065a8d96840db8f576"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28fa99c3986c5015445b03278583ee16" id="r_a28fa99c3986c5015445b03278583ee16"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a28fa99c3986c5015445b03278583ee16">begin</a> ()</td></tr>
<tr class="separator:a28fa99c3986c5015445b03278583ee16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e3ce9942dd85782b8169fd81abb41ca" id="r_a6e3ce9942dd85782b8169fd81abb41ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6e3ce9942dd85782b8169fd81abb41ca">end</a> ()</td></tr>
<tr class="separator:a6e3ce9942dd85782b8169fd81abb41ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae19c93f1b14fe408bcc07cea57e5ad9" id="r_aae19c93f1b14fe408bcc07cea57e5ad9"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae19c93f1b14fe408bcc07cea57e5ad9">buffer</a> ()</td></tr>
<tr class="separator:aae19c93f1b14fe408bcc07cea57e5ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add5a83b6176c87a0c8c850ea696f71fa" id="r_add5a83b6176c87a0c8c850ea696f71fa"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#add5a83b6176c87a0c8c850ea696f71fa">dataSize</a> ()</td></tr>
<tr class="separator:add5a83b6176c87a0c8c850ea696f71fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad15bf2ba9b9363fde0989687e9af67a2" id="r_ad15bf2ba9b9363fde0989687e9af67a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad15bf2ba9b9363fde0989687e9af67a2">clear</a> ()</td></tr>
<tr class="separator:ad15bf2ba9b9363fde0989687e9af67a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a485b97a14184a5a3f0d62269c102b08e" id="r_a485b97a14184a5a3f0d62269c102b08e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a485b97a14184a5a3f0d62269c102b08e">write</a> (const char *data, size_t len, bool clearPos=true)</td></tr>
<tr class="memdesc:a485b97a14184a5a3f0d62269c102b08e"><td class="mdescLeft">&#160;</td><td class="mdescRight">buff中写入数据内容  <br /></td></tr>
<tr class="separator:a485b97a14184a5a3f0d62269c102b08e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c5b19232c6877794063a8f06482f49" id="r_ac9c5b19232c6877794063a8f06482f49"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac9c5b19232c6877794063a8f06482f49">write</a> (const std::string &amp;data, bool clearPos=true)</td></tr>
<tr class="separator:ac9c5b19232c6877794063a8f06482f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a515b0157323d003d74bbc7bc3435ac10" id="r_a515b0157323d003d74bbc7bc3435ac10"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a515b0157323d003d74bbc7bc3435ac10">resize</a> (size_t s)</td></tr>
<tr class="memdesc:a515b0157323d003d74bbc7bc3435ac10"><td class="mdescLeft">&#160;</td><td class="mdescRight">调整缓冲区大小  <br /></td></tr>
<tr class="separator:a515b0157323d003d74bbc7bc3435ac10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a231c3e93e227bc73fd900acfcc6cf646" id="r_a231c3e93e227bc73fd900acfcc6cf646"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a231c3e93e227bc73fd900acfcc6cf646">size</a> ()</td></tr>
<tr class="separator:a231c3e93e227bc73fd900acfcc6cf646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; buff &gt;</a></td></tr>
<tr class="memitem:ae71c401e1f6a3fdd97ed39b821025952 inherit pub_methods_classwheels_1_1dm_1_1singleton" id="r_ae71c401e1f6a3fdd97ed39b821025952"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ae71c401e1f6a3fdd97ed39b821025952">singleton</a> (const <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;)=delete</td></tr>
<tr class="separator:ae71c401e1f6a3fdd97ed39b821025952 inherit pub_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d55bdcea0b0896937c58ab2b9cb9a3 inherit pub_methods_classwheels_1_1dm_1_1singleton" id="r_a00d55bdcea0b0896937c58ab2b9cb9a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a00d55bdcea0b0896937c58ab2b9cb9a3">singleton</a> (<a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a00d55bdcea0b0896937c58ab2b9cb9a3 inherit pub_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; buff &gt;</a></td></tr>
<tr class="memitem:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_ab0f35771c8d539c732b6a4e40bcedeaf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab0f35771c8d539c732b6a4e40bcedeaf">create</a> (Args &amp;&amp;... args)</td></tr>
<tr class="memdesc:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">工厂函数，用来创建单例对象  <br /></td></tr>
<tr class="separator:ab0f35771c8d539c732b6a4e40bcedeaf inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff26d3af3d193f057a15cb6d25c5062c inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_aff26d3af3d193f057a15cb6d25c5062c"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#aff26d3af3d193f057a15cb6d25c5062c">create_shared</a> (Args &amp;&amp;... args)</td></tr>
<tr class="separator:aff26d3af3d193f057a15cb6d25c5062c inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_ab064e1d47abf923e4ae0deaac875c173"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173">get</a> ()</td></tr>
<tr class="memdesc:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前的模块对象指针  <br /></td></tr>
<tr class="separator:ab064e1d47abf923e4ae0deaac875c173 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c95860231735ce03395968f726d0246 inherit pub_static_methods_classwheels_1_1dm_1_1singleton" id="r_a4c95860231735ce03395968f726d0246"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a4c95860231735ce03395968f726d0246">get_shared</a> ()</td></tr>
<tr class="separator:a4c95860231735ce03395968f726d0246 inherit pub_static_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_methods_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; buff &gt;</a></td></tr>
<tr class="memitem:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton" id="r_a486422f98733581c4462792f61c41fcf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a486422f98733581c4462792f61c41fcf">singleton</a> ()</td></tr>
<tr class="memdesc:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">避免直接调用构造函数  <br /></td></tr>
<tr class="separator:a486422f98733581c4462792f61c41fcf inherit pro_methods_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_attribs_classwheels_1_1dm_1_1singleton"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_static_attribs_classwheels_1_1dm_1_1singleton')"><img src="../../closed.png" alt="-"/>&#160;静态 Protected 属性 继承自 <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton&lt; buff &gt;</a></td></tr>
<tr class="memitem:a068f4f3064ec965938e0d99d2b890be7 inherit pro_static_attribs_classwheels_1_1dm_1_1singleton" id="r_a068f4f3064ec965938e0d99d2b890be7"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#a068f4f3064ec965938e0d99d2b890be7">pt_obj__</a></td></tr>
<tr class="separator:a068f4f3064ec965938e0d99d2b890be7 inherit pro_static_attribs_classwheels_1_1dm_1_1singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00017">17</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="a6503c646eb1b9b523b4bab4fc3929805" name="a6503c646eb1b9b523b4bab4fc3929805"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6503c646eb1b9b523b4bab4fc3929805">&#9670;&#160;</a></span>iterator</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">wheels::buff::iterator</a> = char *</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="aeea7382f5dbe94bd7bfae2a8f3b2908b" name="aeea7382f5dbe94bd7bfae2a8f3b2908b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeea7382f5dbe94bd7bfae2a8f3b2908b">&#9670;&#160;</a></span>buff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">buff::buff </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html">bufferBlock.cpp</a> 第 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html#l00009">9</a> 行定义.</p>

</div>
</div>
<a id="a94aa05af107e6b5906f269e7ef53609e" name="a94aa05af107e6b5906f269e7ef53609e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94aa05af107e6b5906f269e7ef53609e">&#9670;&#160;</a></span>~buff()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual wheels::buff::~buff </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a28fa99c3986c5015445b03278583ee16" name="a28fa99c3986c5015445b03278583ee16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28fa99c3986c5015445b03278583ee16">&#9670;&#160;</a></span>begin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">iterator</a> wheels::buff::begin </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<a id="aae19c93f1b14fe408bcc07cea57e5ad9" name="aae19c93f1b14fe408bcc07cea57e5ad9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae19c93f1b14fe408bcc07cea57e5ad9">&#9670;&#160;</a></span>buffer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char * wheels::buff::buffer </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00041">41</a> 行定义.</p>

</div>
</div>
<a id="ad15bf2ba9b9363fde0989687e9af67a2" name="ad15bf2ba9b9363fde0989687e9af67a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad15bf2ba9b9363fde0989687e9af67a2">&#9670;&#160;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void wheels::buff::clear </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00043">43</a> 行定义.</p>

</div>
</div>
<a id="add5a83b6176c87a0c8c850ea696f71fa" name="add5a83b6176c87a0c8c850ea696f71fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add5a83b6176c87a0c8c850ea696f71fa">&#9670;&#160;</a></span>dataSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t wheels::buff::dataSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="a6e3ce9942dd85782b8169fd81abb41ca" name="a6e3ce9942dd85782b8169fd81abb41ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e3ce9942dd85782b8169fd81abb41ca">&#9670;&#160;</a></span>end()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a6503c646eb1b9b523b4bab4fc3929805">iterator</a> wheels::buff::end </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00039">39</a> 行定义.</p>

</div>
</div>
<a id="a515b0157323d003d74bbc7bc3435ac10" name="a515b0157323d003d74bbc7bc3435ac10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a515b0157323d003d74bbc7bc3435ac10">&#9670;&#160;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool wheels::buff::resize </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>调整缓冲区大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s[</td><td>I ]， 缓冲字节大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00061">61</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d36/classwheels_1_1buff_a515b0157323d003d74bbc7bc3435ac10_cgraph.png" border="0" usemap="#ad5/d36/classwheels_1_1buff_a515b0157323d003d74bbc7bc3435ac10_cgraph" alt=""/></div>
<map name="ad5/d36/classwheels_1_1buff_a515b0157323d003d74bbc7bc3435ac10_cgraph" id="ad5/d36/classwheels_1_1buff_a515b0157323d003d74bbc7bc3435ac10_cgraph">
<area shape="rect" title="调整缓冲区大小" alt="" coords="5,13,140,40"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html#aa70d2770b69c634fbe8a01351ffdb768" title="这个方法会放弃旧的数据内容" alt="" coords="188,5,354,48"/>
<area shape="poly" title=" " alt="" coords="140,24,172,24,172,29,140,29"/>
</map>
</div>

</div>
</div>
<a id="a231c3e93e227bc73fd900acfcc6cf646" name="a231c3e93e227bc73fd900acfcc6cf646"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a231c3e93e227bc73fd900acfcc6cf646">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t wheels::buff::size </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a> 第 <a class="el" href="../../dd/da6/buffer_block_8hpp_source.html#l00072">72</a> 行定义.</p>

</div>
</div>
<a id="ac76d02cb8a8df2065a8d96840db8f576" name="ac76d02cb8a8df2065a8d96840db8f576"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac76d02cb8a8df2065a8d96840db8f576">&#9670;&#160;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool buff::toString </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>rst</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将结果转换成标准字符串。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rst[</td><td>O ],输出结果 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html">bufferBlock.cpp</a> 第 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html#l00011">11</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d36/classwheels_1_1buff_ac76d02cb8a8df2065a8d96840db8f576_cgraph.png" border="0" usemap="#ad5/d36/classwheels_1_1buff_ac76d02cb8a8df2065a8d96840db8f576_cgraph" alt=""/></div>
<map name="ad5/d36/classwheels_1_1buff_ac76d02cb8a8df2065a8d96840db8f576_cgraph" id="ad5/d36/classwheels_1_1buff_ac76d02cb8a8df2065a8d96840db8f576_cgraph">
<area shape="rect" title="将结果转换成标准字符串。" alt="" coords="5,13,150,40"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html#ab6d04b824d0c91bfbb2749704eb3a0b9" title="指定当前的数据长度" alt="" coords="198,5,364,48"/>
<area shape="poly" title=" " alt="" coords="150,24,182,24,182,29,150,29"/>
</map>
</div>

</div>
</div>
<a id="a485b97a14184a5a3f0d62269c102b08e" name="a485b97a14184a5a3f0d62269c102b08e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a485b97a14184a5a3f0d62269c102b08e">&#9670;&#160;</a></span>write() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool buff::write </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>clearPos</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>buff中写入数据内容 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataP[</td><td>I ]， 要写入的内容指针 </td></tr>
    <tr><td class="paramname">len[</td><td>I ]，数据长度 </td></tr>
    <tr><td class="paramname">clearPos，清理位置点，如果需要从头改写这个配置为true</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p class="definition">在文件 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html">bufferBlock.cpp</a> 第 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="ac9c5b19232c6877794063a8f06482f49" name="ac9c5b19232c6877794063a8f06482f49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c5b19232c6877794063a8f06482f49">&#9670;&#160;</a></span>write() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool buff::write </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>clearPos</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html">bufferBlock.cpp</a> 第 <a class="el" href="../../d7/dac/buffer_block_8cpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../dd/da6/buffer_block_8hpp_source.html">bufferBlock.hpp</a></li>
<li>src/<a class="el" href="../../d7/dac/buffer_block_8cpp_source.html">bufferBlock.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
